package com.example.friend.service;

import com.example.core.result.Res;
import com.example.friend.entity.DTO.UserSubmitDTO;
import com.example.api.entity.UserQuestionResultVO;

public interface IUserQuestionService {
    /**
     * 提交答案
     * @param submitDTO submitDTO
     * @return Res<UserQuestionResultVO>
     */
    Res<UserQuestionResultVO> submit(UserSubmitDTO submitDTO);

    /**
     * 通过 rabbitmq提交答案
     * @param submitDTO submitDTO
     * @return
     */
    boolean rabbitSubmit(UserSubmitDTO submitDTO);

    /**
     * 获取执行结果
     * @param examId examId
     * @param questionId questionId
     * @param currentTime currentTime
     * @return UserQuestionResultVO
     */
    UserQuestionResultVO exeResult(Long examId, Long questionId, String currentTime);
}
